use strict;
use warnings;
use Data::Dumper;
use Test::More 'no_plan';

use testsupport  ;

use_ok('Log');
use_ok('AppSemTrack');

my $log = Log->instance();

$log->setlevels('DEBUG',3);

my $r1= "t/dataAppBasicTest01";

system("rm -rf $r1 && cp -a data $r1 && find $r1 -name \"*.svn\" -exec rm -rf {} \;");

my $app = AppSemTrack->new( root => "$r1",
			    model => "MODEL.CONF");

my $s1 = $app->createSubject("REQ/TOOL/USA",'REQUIREMENT');
my $data = $app->getWorking($s1);
# manipulate data here...
$app->setWorking($data);

$app->updateDb($s1,"REQ/TOOL/USA");

$app->updateAllDb();

$app->report($reportspec);





my $trace = $log->get_printable_stack();
print STDERR $trace;
$trace = $log->get_printable_filtered_stack();
print STDERR $trace;


